package com.xuecheng.auth;


import com.spring4all.swagger.EnableSwagger2Doc;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

@EnableSwagger2Doc
@SpringBootApplication
@EnableFeignClients(basePackages  = "com.xuecheng.auth.service.client")
public class AuthApplication {

//    public static void main(String[] args) {
//        SpringApplication.run(AuthApplication.class, args);
//    }

    public static void main(String[] args) {
        try {
            System.out.println("= 开始启动应用程序 =");
            SpringApplication.run(AuthApplication.class, args);
            System.out.println("= 应用程序启动成功 =");
        } catch (Throwable t) {
            System.err.println("!!! 应用程序启动失败 !!!");
            t.printStackTrace();
            System.exit(1);
        }
    }

}

